import com.myjob.UaaMain;
import com.myjob.entity.User;
import com.myjob.service.SpringDataUserDetailsServiceImpl;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author Chen Yuan
 * @create 2021-03-18  11:06
 */
@SpringBootTest(classes = {UaaMain.class})
public class test {
	@Autowired
	private SpringDataUserDetailsServiceImpl service;

	@Test
	public void MyTest(){
		User user = new User();
		user.setRole("应聘者");

		service.getRoleCode(user);
		System.out.println(user);
	}
}
